<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title></title>
<#include "/jspgou_sys/head.html"/>
<script type="text/javascript">
function getTableForm() {
	return document.getElementById('tableForm');
}
function optDelete() {
	if(Pn.checkedCount('ids')<=0) {
		alert("<@s.m 'error.checkRecord'/>");
		return;
	}
	if(!confirm("<@s.m 'global.confirm.delete'/>")) {
		return;
	}
	var f = getTableForm();
	f.action="o_delete.do";
	f.submit();
}
function  unLock(username){alert(username);
	$.post("v_unlock.do",{username:username},function(data){
              alert(data);
              location.href="v_list.do";
		});
}
</script>
</head>
<body>
<div class="body-box">
<div class="rhead">
	<div class="rpos"><@s.m "global.position"/>: <@s.m "admin.function"/> - <@s.m "global.list"/></div>
	<form class="ropt">
		<!--  <input type="submit" value="<@s.m "global.add"/>" onclick="this.form.action='v_add.do';"/>-->
	</form>
	<div class="clear"></div>
</div>
<form id="tableForm" method="post">
<input type="hidden" name="pageNo" value="${pageNo!}"/>
<#--  
<#list map1?keys as key>
  map.keys
</#list>
-->
<@p.table value=map1?keys;admin,i,has_next><#rt/>
	
	<@p.column code="admin.username">${admin}</@p.column><#t/>
	<@p.column code="错误次数"><#if map1[admin] gt 2><font color="red">${map1[admin]}</font><#else>${map1[admin]}</#if></@p.column><#t/>
	
	
	
	<@p.column code="解锁" align="center">
		<a href="javascript:void(0);"onclick="unLock('${admin!}')">是</a> 
		
	</@p.column><#t/>
</@p.table>
<div><input type="button" value="<@s.m "global.delete"/>" onclick="optDelete();"/></div>
</form>
</div>
<#include "/common/alert_message.html"/>
</body>
</html>